<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>创建打样定单</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="../css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="../css/AdminLTE.css" rel="stylesheet" type="text/css" />
        <!--datetimerpicker-->
        <link rel="stylesheet" type="text/css" href="../css/datetimepicker/bootstrap-combined.min.css"/>
        <link rel="stylesheet" type="text/css" href="../css/datetimepicker/bootstrap-datetimepicker.min.css"/>
       <!--datepickes-->
		<script src="../js/plugins/datetimerpicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
		<script src="../js/plugins/datetimerpicker/bootstrap-datetimepicker.pt-BR.js" type="text/javascript"></script>
        <link href="../css/myself.css" rel="stylesheet" type="text/css" />
        <link href="../css/bootstrap-tagsinput.css" rel="stylesheet" type="text/css" >
        
        <style type="text/css">
            *{
                margin: 0;
                padding: 0;
            }
            .pull-left{
				border-left: 6px solid #3882FF;
				padding: 0 0 0 10px;
			}
			
            .well{
                padding: 0;
                border: none;
                margin: 0;
                border-radius: 0;
                box-shadow: none;
                -webkit-box-shadow: none;
                background-color: white;
            }
	       
	        #datetimepicker1, #datetimepicker2{
	        	margin: 0;
	        }
	        #datetimepicker1 input, #datetimepicker2 input{
	        	height: 30px;
	        	padding: 7px;
	        	display: inline-block;
	        }
	        #datetimepicker1 .add-on, #datetimepicker2 .add-on{
	        	height: 30px;
	        	padding: 6px 5px;
	        	display: inline-block;
	        }
	        a{
	        	cursor: pointer;
	        }
	        .row{
		       	padding: 0 0 0 20px;
		    }
		    /*新增样式*/
    		.ol_left{
	            width: 100%;
	            height: 30px;
	            line-height: 30px;
	            padding: 0;
	        }
	        .ol_left>li{
	            float: left;
	            margin-right: 5px;
	        }
	        .ol_left li, .ol_left{
	        	margin-bottom: 0;
	        }
           	.inpt td input{
           		width: 100%; 
           		height: 100%; 
           		border: 0;
           		padding: 0 8px;
           	}
           
           	.tag{
           		border: 1px solid #3882FF;
           		color: #3882FF;
           		padding: 5px 3px;
           	}
           	#adding{
           		border: 1px solid #3882FF;
           		color: #3882FF; 
           		width: 10%; 
           		text-align: center; 
           		padding: 5px 0;
           		margin-bottom: 10px;
           		cursor: pointer;
           	}
        </style>
    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="../index.html" class="logo">
                <img src="../img/logo_03.jpg"/>
                后台管理系统
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                               设置
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">You have 10 notifications</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-people info"></i> 5 new members joined today
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-users warning"></i> 5 new members joined
                                            </a>
                                        </li>

                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-cart success"></i> 25 sales made
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-person danger"></i> You changed your username
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">View all</a></li>
                            </ul>
                        </li>
                        <!-- Tasks: style can be found in dropdown.less -->
                        <li class="dropdown tasks-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                               姓名
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">You have 9 tasks</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Design some buttons
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Create a nice theme
                                                    <small class="pull-right">40%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">40% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Some task I need to do
                                                    <small class="pull-right">60%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">60% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Make beautiful transitions
                                                    <small class="pull-right">80%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">80% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">View all tasks</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span>Jane Doe <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <img src="../img/avatar3.png" class="img-circle" alt="User Image" />
                                    <p>
                                        Jane Doe - Web Developer
                                        <small>Member since Nov. 2012</small>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <li class="user-body">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Followers</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Sales</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Friends</a>
                                    </div>
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
        	<!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    
                    
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li class="active">
                            <a href="../index.html">
                                <i class="iconfont">&#xe6e0;</i> <span>工作台</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li>
                            <a href="../widgets.html">
                                <i class="iconfont">&#xe6e1;</i><span>设计订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="iconfont">&#xe6e6;</i>
                                <span>打样订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="iconfont">&#xe6e2;</i>
                                <span>大货订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="iconfont">&#xe6e8;</i><span>历史订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="iconfont">&#xe6e3;</i> <span>客户管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li>
                            <a href="../calendar.html">
                                <i class="iconfont">&#xe6e4;</i> <span>工厂管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li>
                            <a href="../mailbox.html">
                                <i class="iconfont">&#xe6e7;</i> <span>设计库</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="iconfont">&#xe6e5;</i> <span>面料库</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>
           <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>创建打样定单</h1>
                    <ol class="ol_left">
		                <li>当前位置：</li>
		                <li><a href="#">打样订单</a></li>
		                <li>> 创建打样订单</li>
		            </ol>
            	</section>
                <!-- Main content -->
                <section class="content">

                    <div class='row'>
                        <div class='col-md-12'>
                            <div class='box' style="padding: 20px;">
                            	<div class="clearfix" style="padding: 10px 0 10px 25px;">
			                    	<span class="pull-left four-font">订单信息</span>
			                        <span class="bule fl up-div">收起<i class="sq-icon"></i></span>
			                    </div>
                                <div class="center">
                                    <div>填写基本信息</div>
                                    <table class="table table-bordered custormView">
                                        <tr>
                                            <td style="text-align: right; width: 15%;">选择客户</td>
                                            <td width="35%">
                                            	<div class="pull-left no-border" style="width: 100%;">
				                                    <div class="btn-group">
				                                        <button type="button" class="btn btn-default" >选择客户</button>
				                                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
				                                            <span >+</span>
				                                            <span class="sr-only">客户1</span>
				                                        </button>
				                                        <ul class="dropdown-menu" role="menu">
				                                            <li><a href="#">客户1</a></li>
				                                            <li><a href="#">客户2</a></li>
				                                            <li><a href="#">客户3</a></li>
				                                            <li><a href="#">客户4</a></li>
				                                        </ul>
				                                    </div>
							               		</div>
                                            </td>
                                            <td width="15%"></td>
                                            <td width="35%"></td>
                                        </tr>
                                        <tr>
                                        	<td style="text-align: right;">
                                        		<label class="red">*</label>
                                        		打样截止时间
                                        	</td>
                                        	<td>
                                        		<div class="well">
												  	<div id="datetimepicker1" class="input-append date">
													    <input data-format="yyyy/MM/dd hh:mm:ss" type="text"></input>
													    <span class="add-on">
													      <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
													    </span>
												  	</div>
												</div>
                                        	</td>
                                        	<td style="text-align: right;">大货截止时间</td>
                                        	<td>
                                        		<div class="well">
												  	<div id="datetimepicker2" class="input-append date">
													    <input data-format="yyyy/MM/dd hh:mm:ss" type="text"></input>
													    <span class="add-on">
													      <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
													    </span>
												  	</div>
												</div>
                                        	</td>
                                        </tr>
                                        <tr>
                                        	<td style="text-align: right;">客户需求</td>
                                        	<td colspan="3">
                                        		<div class="form-group textarea">
		                                            <textarea class="form-control" rows="3" placeholder="Enter ..."></textarea>
		                                        </div>
                                        	</td>
                                        </tr>
                                    </table>
                                
				               	<div class="clearfix conter">
                                <span class="pull-left four-font">样衣图</span>
                                <div class="col-md-12 photo">
                                    <div class="col-md-4 col-md-offset-4  text-center">
                                        <span class="btn btn-primary shangchuan"><input type="file" name="" id="file_upload">点击上传款式图</span>
                                        <span>
                                            <p>建议尺寸：480*270px</p>
                                            <p>仅支持jpg、png、bmp格式</p>
                                        </span>
                                    </div>
                                    <div class="zhanshi" >
                                        <!-- <img id="preview" /> -->
                                        <div class="zhanshi_find1">
                                            <div class="col-md-8 ">
                                                <img id="zhanshi_photo" src="../images/Design_draft_03.jpg">
                                            </div>
                                            <div class="col-md-4">
                                                <span class="span_active">
                                                    <i class="fa fa-fw fa-times"></i>
                                                    <img src="../images/Design_draft_03.jpg">
                                                    <p style="display: block; margin: 0;">默认主图</p>
                                                </span>
                                               
                                                <a class="tianjia">
                                                    <img src="../img/tianjia.png">
                                                    <input type="file" name="" id="file_upload2">
                                                </a>
                                                <div class="clear"></div>
                                                <p>建议尺寸：480*270px</p>
                                               <p>仅支持jpg、png、bmp格式</p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
							
							<div class=" custorm-view clearfix ">
                                 <span class="content-title-left four-font pull-left">样衣信息</span>
                            </div>
							<div>
                                <div class="style-chart clearfix">
                                    <div class=" find-row">
                                        <div class=" find-col" >
                                            <span class="find_sp">季节款式</span>
                                            <div class="find_div find_div2" style="border:none;">
	                                            <form>
	                                                <label for="anser" style="margin-right: 20px;"> <input class="yes"  type="radio" name="yes"  value="" />春款</label>
	                                                
	                                                <label for="anser"><input class="no" type="radio" name="yes"  value="" />夏款</label>
	                                                
	                                                <label for="anser"><input class="no" type="radio" name="yes"  value="" />秋款</label>
	                                                
	                                                <label for="anser"><input class="no" type="radio" name="yes"  value="" />冬款</label>
	                                            </form>
                                            </div>
                                            <span class="find_sp">款式性别</span>
                                            <div class="find_div find_div2" style="border:none;">
                                                <form>
                                                    <label for="anser" style="margin-right: 20px;"> <input class="yes"  type="radio" name="yes"  value="" />男</label>
                                                    
                                                    <label for="anser"><input class="no" type="radio" name="yes"  value="" />女</label>
                                                    
                                                    <label for="anser"><input class="no" type="radio" name="yes"  value="" />中性</label>
                                                </form>
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                         <div class=" find-col" >
                                            <span class="find_sp">样衣分类</span>
                                            <select class="find_div find_div2">
                                                <option>春</option>
                                                <option>夏</option> 
                                                <option>秋</option>
                                                <option>冬</option> 
                                            </select>

                                            <span class="find_sp">来&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;源</span>
                                            <input class="find_div find_div2" type="text" placeholder="北京小黑裙有限公司"></input>
                                        </div>
                                        <div class="clear"></div>
                                        <div class=" find-col" >
                                                <span class="find_sp">风&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格</span>
                                                <div class="find_div bs-example">
                                                    <input type="text" value="" data-role="tagsinput" />
                                                </div>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                            </div>
							<div id="adding">+ &nbsp;继续添加</div>
					       	<form action="#" method="get" class="yangyi_img">
					       		<div class="pull-left marginBottom" style="border: none; padding: 0; font-size: 14px;">已上传了2款样衣</div>
					       		<table class="table table-bordered">
					       			<tr class="left-text add_tr">
					       				<th style="border: 0; width: 20%;">样衣图</th>
					       				<th style="border: 0; width: 10%;">季节款式</th>
					       				<th style="border: 0; width: 10%;">款式性别</th>
					       				<th style="border: 0; width: 10%;">样衣分类</th>
					       				<th style="border: 0; width: 20%;">来源</th>
					       				<th style="border: 0; width: 10%;">风格</th>
					       				<th style="border: 0; width: 10%;">操作</th>
					       			</tr>
					       			<tr  style="border-top: 1px solid #ccc;">
					       				<td style="border: 0;">
					       					<img src="../img/u139.png"/>
					       				</td>
					       				<td style="border: 0;">春款、秋款</td>
					       				<td style="border: 0;">女</td>
					       				<td style="border: 0;">大衣、外套</td>
					       				<td style="border: 0;">北京小黑裙服装有限公司</td>
					       				<td style="border: 0;">
					       					<span class="tag">淑女</span>
					       					<span class="tag">气质</span>
					       				</td>
					       				<td style="border: 0;">
					       					<a href="#">编辑</a>
					       				</td>
					       			</tr>
					       		</table>
	                       		</table>
                                <div class="clearfix">
                                    <a href="YangYi_choose.html"><div class="btn btn-primary ">确定创建</div></a>
                                    <a href="YangYiKu_TiJiao.html"><div class="btn btn-default ">取消</div></a>
                                </div>
                           </form>
                                </div>
                            </div>
                            </div><!-- /.box -->
                        </div><!-- /.col-->
                    </div><!-- ./row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
        
        <style type="text/css">
        	.clear{
	            clear: both;
	            width: 100%;
	            height: 1px;
	
	        }
	        .photo{
	            height: 348px;
	            max-height: 348px;
	            border:1px solid #ccc;
	            margin-top: 20px;
	            margin-bottom: 20px;
	            padding: 0;
	        }
	       
	        .shangchuan{
	            margin-top: 100px;
	            position: relative;
	            cursor: pointer;
	            background: #fafafa;
	            border: 1px solid #ddd;
	            border-radius: 4px;
	            overflow: hidden;
	            display: inline-block;
	            *display: inline;
	            *zoom: 1;
	        }
	        .shangchuan  input {
	            position: absolute;
	            font-size: 100px;
	            right: 0;
	            top: 0;
	            opacity: 0;
	            filter: alpha(opacity=0);
	            cursor: pointer
	        }
	        
	        
	        
	        .zhanshi{
	            width: 100%;
	            height: 100%;
	            position: absolute;
	            top: 0;
	            display: none;
	            background-color: #fff;
	
	        }
	        .zhanshi_find1{
	            widows: 96%;
	            height: 96%;
	            margin: 1% 2%;
	        }
	        .zhanshi_find1>.col-md-8{
	            border:1px solid #ccc;
	            height: 100%;
	            padding: 0;
	        }
	        .zhanshi img{
	            width: 100%;
	            height: 100%;
	            border-width: 0;
	        }
	        .zhanshi_find1>.col-md-4{padding: 0;}
	        .zhanshi_find1>.col-md-4>span{
	            width: 20%;
	            height: 60px;
	            display: inline-block;
	            float: left;
	            border:1px solid #ccc;
	            cursor: pointer;
	            margin:0 0 10px  10px;
	            position: relative;
	        }
	        .span_active{
	            border:2px solid #3882FF !important;
	            box-shadow: 0 0 3px #3882ff;
	        }
	        .zhanshi_find1>.col-md-4>span>p{
	            position: absolute;
	            width: 100%;
	            text-align: center;
	            height: 20px;
	            line-height: 20px;
	            bottom: 0;
	            font-size: 10px;
	            background-color: #4f8aee;
	            color: #fff;
	            display: none;
	        }
	        .zhanshi_find1>.col-md-4>span>i{
	           position: absolute;
	           top: -3px;
	           right: -7px;
	           z-index: 9;
	        }
	        .tianjia{
	            display: inline-block;
	            width: 20%;
	            height: 60px;
	            display: inline-block;
	            float: left;
	            border:1px solid #ccc;
	            cursor: pointer;
	            margin:0 0 10px  10px;
	            position: relative;
	        }
	        .tianjia  input {
	            position: absolute;
	            font-size: 100px;
	            right: 0;
	            top: 0;
	            opacity: 0;
	            filter: alpha(opacity=0);
	            cursor: pointer;
	            width:100%;
	            height: 100%;
	        }
	        
	        
	        
	        .custorm-view{
                border: none;
            }
            .beizhu{
	            width: 91%;
	            padding-left: 10px;
	            line-height: 40px;
	            margin-top: 20px;
	            margin-left: 5%;
	        }
	        .find_sp{
	            margin-bottom: 10px;
	            padding: 0 10px;
	            display: inline-block;
	            font-weight: bold;
	            float: left;
	            padding-right: 5px;
	            line-height: 30px;
	        }
	        .find_div{
	            width: 90%;
	            height: 90px;
	            border:1px solid #ccc;
	            float: left;
	        }
	        .six-font{
	            font-size: 14px;
	        }
	        .six-font>span{
	            font-size: 16px;
	        }
	     	.shejixinxi{
	            border:1px solid #ccc;
	        }
	       	.bootstrap-tagsinput{
	        	border:none;
	       	}
	       	.bootstrap-tagsinput .tag{
		        margin-right: 2px;
		        color: #3882ff;
		        border: 1px solid;
		        border-radius: 0;
	       	}
	       	.label-info{
	        	background-color: #fff;
	       	}
	       	.find_div2{
		        width: 40%;
		        height: 32px;
		        overflow: hidden;
		        float: left;
		        line-height: 26px;
	       	}
	        
	        .yangyi_img img{
	        	border: 1px solid #ccc;
	        	width: 100px;
	        	height: 100px;
	        }
        </style>
        
        
        
        <!-- jQuery 2.0.2 -->
        <style type="text/css"></style>
        
        <!-- jQuery 2.0.2 -->
        <script src="../js/jquery.min.js"></script>
        <!-- Bootstrap -->
        <script src="../js/bootstrap.min.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="../js/AdminLTE/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->
        <script src="../js/AdminLTE/demo.js" type="text/javascript"></script>        
        <script src="../js/bootstrap-tagsinput.js"></script>
       
        
       	<script src="../js/plugins/datetimerpicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
       	<script src="../js/plugins/datetimerpicker/bootstrap-datetimepicker.pt-BR.js" type="text/javascript"></script>
       
       <script type="text/javascript">
         
            
            
            
           // 时间选择
//			$.fn.datetimepicker.dates['zh'] = {  
//              days:       ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六","星期日"],  
//              daysShort:  ["日", "一", "二", "三", "四", "五", "六","日"],  
//              daysMin:    ["日", "一", "二", "三", "四", "五", "六","日"],  
//              months:     ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月","十二月"],  
//              monthsShort:  ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],  
//              meridiem:    ["上午", "下午"], 
//              today:       "今天"  
//          };
			$(function() {
			    $('#datetimepicker1').datetimepicker({
			      	lang:"ch",
			       	language:  'zh',  
		            weekStart: 1,  
		            todayBtn:  1,  
		            autoclose: 1,  
		            todayHighlight: 1,  
		            startView: 2,  
		            forceParse: 0,  
		            showMeridian: 1  
			    });
			});
			$(function() {
			    $('#datetimepicker2').datetimepicker({
			      	lang:"ch",
			       	language:  'zh',  
		            weekStart: 1,  
		            todayBtn:  1,  
		            autoclose: 1,  
		            todayHighlight: 1,  
		            startView: 2,  
		            forceParse: 0,  
		            showMeridian: 1  
			    });
			});
			
			
			
			// 点击添加删除
			$('#adding').click(function () {
				$('.add_tr').after('<tr  style="border-top: 1px solid #ccc;"><td style="border: 0;"><img src="../img/u139.png"/></td><td style="border: 0;">春款、秋款</td><td style="border: 0;">女</td><td style="border: 0;">大衣、外套</td><td style="border: 0;">北京小黑裙服装有限公司</td><td style="border: 0;"><span class="tag">淑女</span><span class="tag">气质</span></td><td style="border: 0;"><a href="#">编辑</a></td></tr>')
//				
			});
//          
            
            
            
            
            
            
             	$("#file_upload").change(function () {
                    $('.zhanshi').show();

                    var $file = $(this);
                    var fileObj = $file[0];
                    var windowURL = window.URL || window.webkitURL;
                    var dataURL;
                    var $img = $("#zhanshi_photo");

                    if (fileObj && fileObj.files && fileObj.files[0]) {
                        dataURL = windowURL.createObjectURL(fileObj.files[0]);
                        $img.attr('src', dataURL);
                    } else {
                        dataURL = $file.val();
                        var imgObj = document.getElementById("zhanshi_photo");
                        // 两个坑:
                        // 1、在设置filter属性时，元素必须已经存在在DOM树中，动态创建的Node，也需要在设置属性前加入到DOM中，先设置属性在加入，无效；
                        // 2、src属性需要像下面的方式添加，上面的两种方式添加，无效；
                        imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = dataURL;

                    }
                     
                     $('.span_active img').attr('src',dataURL);

                     $('.zhanshi_find1 .col-md-4 span i').click(function(){

                        $(this).parent().hide();
                        console.log($("#zhanshi_photo").attr("src"));
                        if($(this).next().next().css('display')=='block'){
                            $("#zhanshi_photo").attr("src",null);
                        }
                        return false;
                    })
                });

                $('#file_upload2').change(function(){
                   
                   var $file = $(this);
                    var fileObj = $file[0];
                    var windowURL = window.URL || window.webkitURL;
                    var dataURL;
                    var $img = $("#zhanshi_photo");

                    if (fileObj && fileObj.files && fileObj.files[0]) {
                        dataURL = windowURL.createObjectURL(fileObj.files[0]);
                        // $img.attr('src', dataURL);
                    } else {
                        dataURL = $file.val();
                        var imgObj = document.getElementById("zhanshi_photo");
                        // 两个坑:
                        // 1、在设置filter属性时，元素必须已经存在在DOM树中，动态创建的Node，也需要在设置属性前加入到DOM中，先设置属性在加入，无效；
                        // 2、src属性需要像下面的方式添加，上面的两种方式添加，无效；
                        // imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        // imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = dataURL;

                    }
                     var a='<span >'+'<i class="fa fa-fw fa-times"></i>'+'<img src="'+dataURL+'">'+'  <p style="margin:0;">默认主图</p>'+' </span> ';
                     // '+dataURL+'

                    $('.tianjia').before(a);

                    $('.zhanshi_find1 .col-md-4 span').click(function(){
                        $(this).addClass('span_active');
                        $(this).siblings('span').removeClass('span_active');
                        $(this).find("p").show();
                        $(this).siblings('span').find("p").hide();
                        var src=$(this).find('img').attr('src');
                        $("#zhanshi_photo").attr("src",src);

                    })

                     $('.zhanshi_find1 .col-md-4 span i').click(function(){

                        $(this).parent().hide();
                        console.log($("#zhanshi_photo").attr("src"));
                        if($(this).next().next().css('display')=='block'){
                            $("#zhanshi_photo").attr("src",null);
                        }
                        return false;
                    })


                });
             	$('.zhanshi_find1 .col-md-4 span').click(function(){
                    $(this).addClass('span_active');
                    $(this).siblings('span').removeClass('span_active');
                    $(this).find("p").show();
                    $(this).siblings('span').find("p").hide();
                    var src=$(this).find('img').attr('src');
                    $("#zhanshi_photo").attr("src",src);

               	});


       
        </script>

    </body>
</html>


